package com.water_work_form.mapper;

import com.water_work_form.entity.BasicForm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 基础表——记录名称编号 Mapper 接口
 * </p>
 *
 * @author xuke
 * @since 2023-08-01
 */
@Mapper
public interface BasicFormMapper extends BaseMapper<BasicForm> {

    /**
     * 唯一索引查询
     * @param name
     * @return
     */
    @Select("SELECT * FROM basic_form WHERE name = #{name}")
    BasicForm getOneByName(String name);
}
